/* Author : Maisa Nurul Agnia */
package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.TextField;

public class ShipToField extends GroupControl {
	private MemoField notesShipField;
	private ComboField<String> shipToField;
	
	public ShipToField(String bindID){
		setTitle("header.ShipTo"); //disesuaikan dengan nama field
		setBindID(bindID);
		createFields();
		createLayout();
	}	
	
	private void createFields()
	{
		notesShipField = new MemoField();
		shipToField = new ComboField <String> ("shipTo","wow");

		//shipToField.setPreferredSize(ShipToField.getPreferredSize());
	}
	
	private void createLayout()
	{
		setLayout(new FormLayout())

		.addField(shipToField,Resize.HORIZONTAL)
		.addRow()
		.addField(notesShipField)	 		;
	}
	
}
